summaryrefslogtreecommitdiff
path: root/app/api/data-room/[projectId]/[fileId]/route.ts
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-10-29 07:46:57 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-10-29 07:46:57 +0000
commitbbc3094e932e3d193d3223448c789461f4afc058 (patch)
treef28dd034b191ca78d0af15eccbbdf7a952141153 /app/api/data-room/[projectId]/[fileId]/route.ts
parentd28c43b2d33bac51c69ac7417a14f9fe83f2a25f (diff)
(대표님) 데이터룸 관련 변경사항
Diffstat (limited to 'app/api/data-room/[projectId]/[fileId]/route.ts')
-rw-r--r--app/api/data-room/[projectId]/[fileId]/route.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/api/data-room/[projectId]/[fileId]/route.ts b/app/api/data-room/[projectId]/[fileId]/route.ts
index 9ee01eb2..5e6d5088 100644
--- a/app/api/data-room/[projectId]/[fileId]/route.ts
+++ b/app/api/data-room/[projectId]/[fileId]/route.ts
@@ -21,7 +21,7 @@ export async function GET(
}
const context: FileAccessContext = {
- userId: session.user.id,
+ userId: Number(session.user.id),
userDomain: session.user.domain || 'partners',
userEmail: session.user.email,
ipAddress: request.ip || request.headers.get('x-forwarded-for') || undefined,
@@ -201,7 +201,7 @@ export async function PATCH(
projectId,
action,
actionDetails,
- userId: session.user.id,
+ userId: Number(session.user.id),
userEmail: session.user.email,
userDomain: session.user.domain,
});